import request from '@/utils/request'

// 查询待审批活动列表
export function listPendActivity(query) {
  return request({
    url: '/gxs/pendActivity/list',
    method: 'get',
    params: query
  })
}

// 查询待审批活动详细
export function getPendActivity(gxsPendActivityid) {
  return request({
    url: '/gxs/pendActivity/' + gxsPendActivityid,
    method: 'get'
  })
}

// 新增待审批活动
export function addPendActivity(data) {
  return request({
    url: '/gxs/pendActivity',
    method: 'post',
    data: data
  })
}

// 修改待审批活动
export function updatePendActivity(data) {
  return request({
    url: '/gxs/pendActivity',
    method: 'put',
    data: data
  })
}

// 删除待审批活动
export function delPendActivity(gxsPendActivityid) {
  return request({
    url: '/gxs/pendActivity/' + gxsPendActivityid,
    method: 'delete'
  })
}
